.class public Lcom/brixd/niceapp/community/PortalFragment;
.super Lcom/brixd/niceapp/community/AbsCommunityBaseFragment;
.source "PortalFragment.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;
    }
.end annotation


# instance fields
.field private clover1Box:Landroid/view/View;

.field private clover2Box:Landroid/view/View;

.field private clover3Box:Landroid/view/View;

.field private clover4Box:Landroid/view/View;

.field private mClover1ImageView:Landroid/widget/ImageView;

.field private mClover2ImageView:Landroid/widget/ImageView;

.field private mClover3ImageView:Landroid/widget/ImageView;

.field private mClover4ImageView:Landroid/widget/ImageView;

.field private mDummyClover1ImageView:Landroid/widget/ImageView;

.field private mDummyClover2ImageView:Landroid/widget/ImageView;

.field private mDummyClover3ImageView:Landroid/widget/ImageView;

.field private mDummyClover4ImageView:Landroid/widget/ImageView;

.field private mDummyLine1Box:Landroid/view/View;

.field private mDummyLine2Box:Landroid/view/View;

.field private mExpandableListView:Landroid/widget/ExpandableListView;

.field private mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

.field private mLine1Box:Landroid/view/View;

.field private mLine2Box:Landroid/view/View;

.field private mListOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

.field private mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

.field private mPortalAdapter:Lcom/brixd/niceapp/community/adapter/PortalAdapter;

.field private mPortalModel:Lcom/brixd/niceapp/model/PortalModel;

.field private mRequest:Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

.field private mScreenWidth:I

.field private mShadowHeaderView:Landroid/view/View;


# direct methods
.method public constructor <init>()V
    .registers 2

    .prologue
    .line 61
    invoke-direct {p0}, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment;-><init>()V

    .line 80
    new-instance v0, Lcom/brixd/niceapp/community/PortalFragment$1;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/community/PortalFragment$1;-><init>(Lcom/brixd/niceapp/community/PortalFragment;)V

    iput-object v0, p0, Lcom/brixd/niceapp/community/PortalFragment;->mListOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    .line 383
    return-void
.end method

.method static synthetic access$000(Lcom/brixd/niceapp/community/PortalFragment;)Landroid/view/View;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/PortalFragment;

    .prologue
    .line 61
    iget-object v0, p0, Lcom/brixd/niceapp/community/PortalFragment;->mLine1Box:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$100(Lcom/brixd/niceapp/community/PortalFragment;)Landroid/view/View;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/PortalFragment;

    .prologue
    .line 61
    iget-object v0, p0, Lcom/brixd/niceapp/community/PortalFragment;->mLine2Box:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$200(Lcom/brixd/niceapp/community/PortalFragment;)Landroid/view/View;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/PortalFragment;

    .prologue
    .line 61
    iget-object v0, p0, Lcom/brixd/niceapp/community/PortalFragment;->mDummyLine1Box:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$300(Lcom/brixd/niceapp/community/PortalFragment;)Landroid/view/View;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/PortalFragment;

    .prologue
    .line 61
    iget-object v0, p0, Lcom/brixd/niceapp/community/PortalFragment;->mDummyLine2Box:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$400(Lcom/brixd/niceapp/community/PortalFragment;)Landroid/view/View;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/PortalFragment;

    .prologue
    .line 61
    iget-object v0, p0, Lcom/brixd/niceapp/community/PortalFragment;->mShadowHeaderView:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$500(Lcom/brixd/niceapp/community/PortalFragment;)Lcom/brixd/niceapp/community/adapter/PortalAdapter;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/PortalFragment;

    .prologue
    .line 61
    iget-object v0, p0, Lcom/brixd/niceapp/community/PortalFragment;->mPortalAdapter:Lcom/brixd/niceapp/community/adapter/PortalAdapter;

    return-object v0
.end method

.method static synthetic access$600(Lcom/brixd/niceapp/community/PortalFragment;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/community/PortalFragment;

    .prologue
    .line 61
    invoke-direct {p0}, Lcom/brixd/niceapp/community/PortalFragment;->expandAllGroup()V

    return-void
.end method

.method static synthetic access$702(Lcom/brixd/niceapp/community/PortalFragment;Lcom/brixd/niceapp/model/PortalModel;)Lcom/brixd/niceapp/model/PortalModel;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/community/PortalFragment;
    .param p1, "x1"    # Lcom/brixd/niceapp/model/PortalModel;

    .prologue
    .line 61
    iput-object p1, p0, Lcom/brixd/niceapp/community/PortalFragment;->mPortalModel:Lcom/brixd/niceapp/model/PortalModel;

    return-object p1
.end method

.method static synthetic access$800(Lcom/brixd/niceapp/community/PortalFragment;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/community/PortalFragment;

    .prologue
    .line 61
    invoke-direct {p0}, Lcom/brixd/niceapp/community/PortalFragment;->refreshCloverView()V

    return-void
.end method

.method static synthetic access$900(Lcom/brixd/niceapp/community/PortalFragment;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/community/PortalFragment;

    .prologue
    .line 61
    invoke-direct {p0}, Lcom/brixd/niceapp/community/PortalFragment;->refreshPortalData()V

    return-void
.end method

.method private expandAllGroup()V
    .registers 3

    .prologue
    .line 172
    iget-object v1, p0, Lcom/brixd/niceapp/community/PortalFragment;->mPortalAdapter:Lcom/brixd/niceapp/community/adapter/PortalAdapter;

    if-nez v1, :cond_5

    .line 178
    :cond_4
    return-void

    .line 175
    :cond_5
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_6
    iget-object v1, p0, Lcom/brixd/niceapp/community/PortalFragment;->mPortalAdapter:Lcom/brixd/niceapp/community/adapter/PortalAdapter;

    invoke-virtual {v1}, Lcom/brixd/niceapp/community/adapter/PortalAdapter;->getGroupCount()I

    move-result v1

    if-ge v0, v1, :cond_4

    .line 176
    iget-object v1, p0, Lcom/brixd/niceapp/community/PortalFragment;->mExpandableListView:Landroid/widget/ExpandableListView;

    invoke-virtual {v1, v0}, Landroid/widget/ExpandableListView;->expandGroup(I)Z

    .line 175
    add-int/lit8 v0, v0, 0x1

    goto :goto_6
.end method

.method public static getInstance()Lcom/brixd/niceapp/community/PortalFragment;
    .registers 2

    .prologue
    .line 113
    new-instance v1, Lcom/brixd/niceapp/community/PortalFragment;

    invoke-direct {v1}, Lcom/brixd/niceapp/community/PortalFragment;-><init>()V

    .line 114
    .local v1, "fragment":Lcom/brixd/niceapp/community/PortalFragment;
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 115
    .local v0, "extra":Landroid/os/Bundle;
    invoke-virtual {v1, v0}, Lcom/brixd/niceapp/community/PortalFragment;->setArguments(Landroid/os/Bundle;)V

    .line 116
    return-object v1
.end method

.method private initCloverView(Landroid/view/View;Landroid/view/View;)V
    .registers 16
    .param p1, "cloverView"    # Landroid/view/View;
    .param p2, "headerDummyView"    # Landroid/view/View;

    .prologue
    const v12, 0x7f09002d

    const/high16 v11, 0x3f800000

    const v10, 0x7f09002e

    const/4 v9, 0x0

    .line 181
    const v6, 0x7f0a016b

    invoke-virtual {p1, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/ImageView;

    iput-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mClover1ImageView:Landroid/widget/ImageView;

    .line 182
    const v6, 0x7f0a016d

    invoke-virtual {p1, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/ImageView;

    iput-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mClover2ImageView:Landroid/widget/ImageView;

    .line 183
    const v6, 0x7f0a0171

    invoke-virtual {p1, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/ImageView;

    iput-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mClover3ImageView:Landroid/widget/ImageView;

    .line 184
    const v6, 0x7f0a0173

    invoke-virtual {p1, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/ImageView;

    iput-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mClover4ImageView:Landroid/widget/ImageView;

    .line 185
    const v6, 0x7f0a016a

    invoke-virtual {p1, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    iput-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->clover1Box:Landroid/view/View;

    .line 186
    const v6, 0x7f0a016c

    invoke-virtual {p1, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    iput-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->clover2Box:Landroid/view/View;

    .line 187
    const v6, 0x7f0a0170

    invoke-virtual {p1, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    iput-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->clover3Box:Landroid/view/View;

    .line 188
    const v6, 0x7f0a0172

    invoke-virtual {p1, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    iput-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->clover4Box:Landroid/view/View;

    .line 189
    const v6, 0x7f0a0169

    invoke-virtual {p1, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    iput-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mLine1Box:Landroid/view/View;

    .line 190
    const v6, 0x7f0a016f

    invoke-virtual {p1, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    iput-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mLine2Box:Landroid/view/View;

    .line 191
    const v6, 0x7f0a0163

    invoke-virtual {p2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/ImageView;

    iput-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mDummyClover1ImageView:Landroid/widget/ImageView;

    .line 192
    const v6, 0x7f0a0164

    invoke-virtual {p2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/ImageView;

    iput-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mDummyClover2ImageView:Landroid/widget/ImageView;

    .line 193
    const v6, 0x7f0a0166

    invoke-virtual {p2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/ImageView;

    iput-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mDummyClover3ImageView:Landroid/widget/ImageView;

    .line 194
    const v6, 0x7f0a0167

    invoke-virtual {p2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/ImageView;

    iput-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mDummyClover4ImageView:Landroid/widget/ImageView;

    .line 195
    const v6, 0x7f0a0162

    invoke-virtual {p2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    iput-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mDummyLine1Box:Landroid/view/View;

    .line 196
    const v6, 0x7f0a0165

    invoke-virtual {p2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    iput-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mDummyLine2Box:Landroid/view/View;

    .line 199
    iget v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mScreenWidth:I

    invoke-virtual {p0}, Lcom/brixd/niceapp/community/PortalFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v7

    const v8, 0x7f09002b

    invoke-virtual {v7, v8}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v7

    mul-int/lit8 v7, v7, 0x2

    sub-int/2addr v6, v7

    .line 200
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/PortalFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v7

    invoke-virtual {v7, v12}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v7

    sub-int/2addr v6, v7

    div-int/lit8 v1, v6, 0x2

    .line 201
    .local v1, "imageWidth":I
    int-to-float v6, v1

    const/high16 v7, 0x40400000

    div-float/2addr v6, v7

    const/high16 v7, 0x40000000

    mul-float v0, v6, v7

    .line 203
    .local v0, "imageHeight":F
    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    float-to-int v6, v0

    invoke-direct {v2, v9, v6}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 204
    .local v2, "layoutParamsLeft":Landroid/widget/LinearLayout$LayoutParams;
    iput v11, v2, Landroid/widget/LinearLayout$LayoutParams;->weight:F

    .line 205
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/PortalFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    invoke-virtual {v6, v10}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v6

    .line 206
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/PortalFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v7

    invoke-virtual {v7, v12}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v7

    .line 205
    invoke-virtual {v2, v9, v6, v7, v9}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    .line 208
    new-instance v3, Landroid/widget/LinearLayout$LayoutParams;

    float-to-int v6, v0

    invoke-direct {v3, v9, v6}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 209
    .local v3, "layoutParamsRight":Landroid/widget/LinearLayout$LayoutParams;
    iput v11, v3, Landroid/widget/LinearLayout$LayoutParams;->weight:F

    .line 210
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/PortalFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    invoke-virtual {v6, v10}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v6

    invoke-virtual {v3, v9, v6, v9, v9}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    .line 212
    iget-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->clover1Box:Landroid/view/View;

    invoke-virtual {v6, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 213
    iget-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->clover2Box:Landroid/view/View;

    invoke-virtual {v6, v3}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 214
    iget-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->clover3Box:Landroid/view/View;

    invoke-virtual {v6, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 215
    iget-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->clover4Box:Landroid/view/View;

    invoke-virtual {v6, v3}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 216
    iget-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mDummyClover1ImageView:Landroid/widget/ImageView;

    invoke-virtual {v6, v2}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 217
    iget-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mDummyClover2ImageView:Landroid/widget/ImageView;

    invoke-virtual {v6, v3}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 218
    iget-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mDummyClover3ImageView:Landroid/widget/ImageView;

    invoke-virtual {v6, v2}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 219
    iget-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mDummyClover4ImageView:Landroid/widget/ImageView;

    invoke-virtual {v6, v3}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 221
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/PortalFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    invoke-virtual {v6, v10}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v6

    int-to-float v6, v6

    add-float v4, v0, v6

    .line 222
    .local v4, "lineHeight":F
    new-instance v5, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v6, -0x1

    float-to-int v7, v4

    invoke-direct {v5, v6, v7}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 223
    .local v5, "lineLayoutParams":Landroid/widget/LinearLayout$LayoutParams;
    iget-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mLine1Box:Landroid/view/View;

    invoke-virtual {v6, v5}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 224
    iget-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mLine2Box:Landroid/view/View;

    invoke-virtual {v6, v5}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 225
    iget-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mDummyLine1Box:Landroid/view/View;

    invoke-virtual {v6, v5}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 226
    iget-object v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mDummyLine2Box:Landroid/view/View;

    invoke-virtual {v6, v5}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 228
    invoke-direct {p0}, Lcom/brixd/niceapp/community/PortalFragment;->refreshCloverView()V

    .line 229
    return-void
.end method

.method private refreshCloverView()V
    .registers 15

    .prologue
    .line 232
    iget-object v11, p0, Lcom/brixd/niceapp/community/PortalFragment;->mPortalModel:Lcom/brixd/niceapp/model/PortalModel;

    if-eqz v11, :cond_a

    iget-object v11, p0, Lcom/brixd/niceapp/community/PortalFragment;->mPortalModel:Lcom/brixd/niceapp/model/PortalModel;

    iget-object v11, v11, Lcom/brixd/niceapp/model/PortalModel;->bannerModels:Ljava/util/List;

    if-nez v11, :cond_b

    .line 292
    :cond_a
    return-void

    .line 235
    :cond_b
    const/4 v3, 0x4

    .line 236
    .local v3, "cloverSize":I
    iget-object v11, p0, Lcom/brixd/niceapp/community/PortalFragment;->mPortalModel:Lcom/brixd/niceapp/model/PortalModel;

    iget-object v11, v11, Lcom/brixd/niceapp/model/PortalModel;->bannerModels:Ljava/util/List;

    invoke-interface {v11}, Ljava/util/List;->size()I

    move-result v11

    const/4 v12, 0x4

    if-ge v11, v12, :cond_1f

    .line 237
    iget-object v11, p0, Lcom/brixd/niceapp/community/PortalFragment;->mPortalModel:Lcom/brixd/niceapp/model/PortalModel;

    iget-object v11, v11, Lcom/brixd/niceapp/model/PortalModel;->bannerModels:Ljava/util/List;

    invoke-interface {v11}, Ljava/util/List;->size()I

    move-result v3

    .line 240
    :cond_1f
    const/4 v5, 0x0

    .local v5, "i":I
    :goto_20
    if-ge v5, v3, :cond_a

    .line 241
    iget-object v11, p0, Lcom/brixd/niceapp/community/PortalFragment;->mPortalModel:Lcom/brixd/niceapp/model/PortalModel;

    iget-object v11, v11, Lcom/brixd/niceapp/model/PortalModel;->bannerModels:Ljava/util/List;

    invoke-interface {v11, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/model/BannerModel;

    .line 243
    .local v0, "bannerModel":Lcom/brixd/niceapp/model/BannerModel;
    iget v11, v0, Lcom/brixd/niceapp/model/BannerModel;->actionType:I

    const/4 v12, 0x2

    if-ne v11, v12, :cond_9b

    iget-object v11, v0, Lcom/brixd/niceapp/model/BannerModel;->videoUrl:Ljava/lang/String;

    if-eqz v11, :cond_9b

    iget-object v11, v0, Lcom/brixd/niceapp/model/BannerModel;->videoUrl:Ljava/lang/String;

    .line 244
    invoke-virtual {v11}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v11

    invoke-static {v11}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v11

    if-nez v11, :cond_9b

    .line 246
    const/4 v2, 0x0

    .line 247
    .local v2, "cloverImageView":Landroid/widget/ImageView;
    if-nez v5, :cond_b7

    .line 248
    iget-object v2, p0, Lcom/brixd/niceapp/community/PortalFragment;->mClover1ImageView:Landroid/widget/ImageView;

    .line 257
    :cond_46
    :goto_46
    if-eqz v2, :cond_9b

    invoke-virtual {p0}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v11

    if-eqz v11, :cond_9b

    .line 258
    invoke-virtual {v2}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v6

    .line 259
    .local v6, "lpCloverImage":Landroid/view/ViewGroup$LayoutParams;
    invoke-virtual {v2}, Landroid/widget/ImageView;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    check-cast v1, Landroid/view/ViewGroup;

    .line 260
    .local v1, "cloverBox":Landroid/view/ViewGroup;
    new-instance v4, Landroid/widget/FrameLayout;

    invoke-virtual {p0}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v11

    invoke-direct {v4, v11}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    .line 261
    .local v4, "container":Landroid/widget/FrameLayout;
    const/4 v11, 0x0

    invoke-virtual {v1, v11}, Landroid/view/ViewGroup;->removeViewAt(I)V

    .line 262
    invoke-virtual {v1, v4, v6}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 263
    invoke-virtual {v4, v2}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    .line 265
    new-instance v10, Landroid/widget/ImageView;

    invoke-virtual {p0}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v11

    invoke-direct {v10, v11}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .line 266
    .local v10, "videoBadgeView":Landroid/widget/ImageView;
    new-instance v7, Landroid/widget/FrameLayout$LayoutParams;

    const/4 v11, -0x2

    const/4 v12, -0x2

    invoke-direct {v7, v11, v12}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 268
    .local v7, "lpVideoBadge":Landroid/widget/FrameLayout$LayoutParams;
    const/16 v11, 0x35

    iput v11, v7, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    .line 269
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/PortalFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v11

    const v12, 0x7f09002f

    invoke-virtual {v11, v12}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v8

    .line 270
    .local v8, "margin":I
    const/4 v11, 0x0

    const/4 v12, 0x0

    invoke-virtual {v7, v11, v8, v8, v12}, Landroid/widget/FrameLayout$LayoutParams;->setMargins(IIII)V

    .line 271
    invoke-virtual {v10, v7}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 272
    const v11, 0x7f020018

    invoke-virtual {v10, v11}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 273
    invoke-virtual {v4, v10}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    .line 277
    .end local v1    # "cloverBox":Landroid/view/ViewGroup;
    .end local v2    # "cloverImageView":Landroid/widget/ImageView;
    .end local v4    # "container":Landroid/widget/FrameLayout;
    .end local v6    # "lpCloverImage":Landroid/view/ViewGroup$LayoutParams;
    .end local v7    # "lpVideoBadge":Landroid/widget/FrameLayout$LayoutParams;
    .end local v8    # "margin":I
    .end local v10    # "videoBadgeView":Landroid/widget/ImageView;
    :cond_9b
    iget-object v9, v0, Lcom/brixd/niceapp/model/BannerModel;->coverUrl:Ljava/lang/String;

    .line 278
    .local v9, "url":Ljava/lang/String;
    if-nez v5, :cond_ca

    .line 279
    iget-object v11, p0, Lcom/brixd/niceapp/community/PortalFragment;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    iget-object v12, p0, Lcom/brixd/niceapp/community/PortalFragment;->mClover1ImageView:Landroid/widget/ImageView;

    iget-object v13, p0, Lcom/brixd/niceapp/community/PortalFragment;->mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    invoke-virtual {v11, v9, v12, v13}, Lcom/nostra13/universalimageloader/core/ImageLoader;->displayImage(Ljava/lang/String;Landroid/widget/ImageView;Lcom/nostra13/universalimageloader/core/DisplayImageOptions;)V

    .line 280
    iget-object v11, p0, Lcom/brixd/niceapp/community/PortalFragment;->mDummyClover1ImageView:Landroid/widget/ImageView;

    new-instance v12, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;

    const/4 v13, 0x1

    invoke-direct {v12, p0, v0, v13}, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;-><init>(Lcom/brixd/niceapp/community/PortalFragment;Lcom/brixd/niceapp/model/BannerModel;I)V

    invoke-virtual {v11, v12}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 240
    :cond_b3
    :goto_b3
    add-int/lit8 v5, v5, 0x1

    goto/16 :goto_20

    .line 249
    .end local v9    # "url":Ljava/lang/String;
    .restart local v2    # "cloverImageView":Landroid/widget/ImageView;
    :cond_b7
    const/4 v11, 0x1

    if-ne v5, v11, :cond_bd

    .line 250
    iget-object v2, p0, Lcom/brixd/niceapp/community/PortalFragment;->mClover2ImageView:Landroid/widget/ImageView;

    goto :goto_46

    .line 251
    :cond_bd
    const/4 v11, 0x2

    if-ne v5, v11, :cond_c3

    .line 252
    iget-object v2, p0, Lcom/brixd/niceapp/community/PortalFragment;->mClover3ImageView:Landroid/widget/ImageView;

    goto :goto_46

    .line 253
    :cond_c3
    const/4 v11, 0x3

    if-ne v5, v11, :cond_46

    .line 254
    iget-object v2, p0, Lcom/brixd/niceapp/community/PortalFragment;->mClover4ImageView:Landroid/widget/ImageView;

    goto/16 :goto_46

    .line 281
    .end local v2    # "cloverImageView":Landroid/widget/ImageView;
    .restart local v9    # "url":Ljava/lang/String;
    :cond_ca
    const/4 v11, 0x1

    if-ne v5, v11, :cond_e2

    .line 282
    iget-object v11, p0, Lcom/brixd/niceapp/community/PortalFragment;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    iget-object v12, p0, Lcom/brixd/niceapp/community/PortalFragment;->mClover2ImageView:Landroid/widget/ImageView;

    iget-object v13, p0, Lcom/brixd/niceapp/community/PortalFragment;->mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    invoke-virtual {v11, v9, v12, v13}, Lcom/nostra13/universalimageloader/core/ImageLoader;->displayImage(Ljava/lang/String;Landroid/widget/ImageView;Lcom/nostra13/universalimageloader/core/DisplayImageOptions;)V

    .line 283
    iget-object v11, p0, Lcom/brixd/niceapp/community/PortalFragment;->mDummyClover2ImageView:Landroid/widget/ImageView;

    new-instance v12, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;

    const/4 v13, 0x2

    invoke-direct {v12, p0, v0, v13}, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;-><init>(Lcom/brixd/niceapp/community/PortalFragment;Lcom/brixd/niceapp/model/BannerModel;I)V

    invoke-virtual {v11, v12}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_b3

    .line 284
    :cond_e2
    const/4 v11, 0x2

    if-ne v5, v11, :cond_fa

    .line 285
    iget-object v11, p0, Lcom/brixd/niceapp/community/PortalFragment;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    iget-object v12, p0, Lcom/brixd/niceapp/community/PortalFragment;->mClover3ImageView:Landroid/widget/ImageView;

    iget-object v13, p0, Lcom/brixd/niceapp/community/PortalFragment;->mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    invoke-virtual {v11, v9, v12, v13}, Lcom/nostra13/universalimageloader/core/ImageLoader;->displayImage(Ljava/lang/String;Landroid/widget/ImageView;Lcom/nostra13/universalimageloader/core/DisplayImageOptions;)V

    .line 286
    iget-object v11, p0, Lcom/brixd/niceapp/community/PortalFragment;->mDummyClover3ImageView:Landroid/widget/ImageView;

    new-instance v12, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;

    const/4 v13, 0x3

    invoke-direct {v12, p0, v0, v13}, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;-><init>(Lcom/brixd/niceapp/community/PortalFragment;Lcom/brixd/niceapp/model/BannerModel;I)V

    invoke-virtual {v11, v12}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_b3

    .line 287
    :cond_fa
    const/4 v11, 0x3

    if-ne v5, v11, :cond_b3

    .line 288
    iget-object v11, p0, Lcom/brixd/niceapp/community/PortalFragment;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    iget-object v12, p0, Lcom/brixd/niceapp/community/PortalFragment;->mClover4ImageView:Landroid/widget/ImageView;

    iget-object v13, p0, Lcom/brixd/niceapp/community/PortalFragment;->mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    invoke-virtual {v11, v9, v12, v13}, Lcom/nostra13/universalimageloader/core/ImageLoader;->displayImage(Ljava/lang/String;Landroid/widget/ImageView;Lcom/nostra13/universalimageloader/core/DisplayImageOptions;)V

    .line 289
    iget-object v11, p0, Lcom/brixd/niceapp/community/PortalFragment;->mDummyClover4ImageView:Landroid/widget/ImageView;

    new-instance v12, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;

    const/4 v13, 0x4

    invoke-direct {v12, p0, v0, v13}, Lcom/brixd/niceapp/community/PortalFragment$CloverOnClickListener;-><init>(Lcom/brixd/niceapp/community/PortalFragment;Lcom/brixd/niceapp/model/BannerModel;I)V

    invoke-virtual {v11, v12}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_b3
.end method

.method private refreshPortalData()V
    .registers 5

    .prologue
    const/4 v3, 0x2

    .line 313
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/Calendar;->getTimeInMillis()J

    move-result-wide v0

    invoke-static {v0, v1}, Lcom/brixd/niceapp/util/LocalCacheUtils;->setPortalDataLastReqTime(J)V

    .line 315
    iget-object v0, p0, Lcom/brixd/niceapp/community/PortalFragment;->mRequest:Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    invoke-static {}, Lcom/brixd/niceapp/service/UserService;->getLoginUserId()I

    move-result v1

    new-instance v2, Lcom/brixd/niceapp/community/PortalFragment$3;

    invoke-direct {v2, p0}, Lcom/brixd/niceapp/community/PortalFragment$3;-><init>(Lcom/brixd/niceapp/community/PortalFragment;)V

    invoke-interface {v0, v3, v1, v3, v2}, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;->listPortalData(IIILretrofit/Callback;)V

    .line 336
    return-void
.end method


# virtual methods
.method public getFragmentTitle()Ljava/lang/String;
    .registers 3

    .prologue
    .line 121
    invoke-static {}, Lcom/brixd/niceapp/application/NiceAppApplication;->getMyApplication()Lcom/brixd/niceapp/application/NiceAppApplication;

    move-result-object v0

    const v1, 0x7f0c00bc

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/application/NiceAppApplication;->getString(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected initActions(Landroid/view/View;)V
    .registers 4
    .param p1, "fragmentView"    # Landroid/view/View;

    .prologue
    .line 296
    iget-object v0, p0, Lcom/brixd/niceapp/community/PortalFragment;->mExpandableListView:Landroid/widget/ExpandableListView;

    new-instance v1, Lcom/brixd/niceapp/community/PortalFragment$2;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/community/PortalFragment$2;-><init>(Lcom/brixd/niceapp/community/PortalFragment;)V

    invoke-virtual {v0, v1}, Landroid/widget/ExpandableListView;->setOnGroupClickListener(Landroid/widget/ExpandableListView$OnGroupClickListener;)V

    .line 304
    return-void
.end method

.method protected initData()V
    .registers 5

    .prologue
    const/4 v3, 0x1

    const v2, 0x7f0201c5

    .line 131
    invoke-static {}, Lcom/brixd/niceapp/util/LocalCacheUtils;->getPortalData()Lorg/json/JSONObject;

    move-result-object v0

    invoke-static {v0}, Lcom/brixd/niceapp/model/PortalModel;->parsePortalModel(Lorg/json/JSONObject;)Lcom/brixd/niceapp/model/PortalModel;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/community/PortalFragment;->mPortalModel:Lcom/brixd/niceapp/model/PortalModel;

    .line 132
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    invoke-static {v0}, Lcom/brixd/niceapp/service/adapter/ReqRestAdapter;->niceAppAdapter(Landroid/content/Context;)Lretrofit/RestAdapter;

    move-result-object v0

    const-class v1, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    invoke-virtual {v0, v1}, Lretrofit/RestAdapter;->create(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    iput-object v0, p0, Lcom/brixd/niceapp/community/PortalFragment;->mRequest:Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    .line 134
    new-instance v0, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    invoke-direct {v0}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;-><init>()V

    invoke-virtual {v0, v2}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageForEmptyUri(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageOnFail(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    .line 135
    invoke-virtual {v0, v2}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageOnLoading(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->resetViewBeforeLoading(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheInMemory(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheOnDisc(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    sget-object v1, Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;->EXACTLY:Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;

    .line 136
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->imageScaleType(Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    sget-object v1, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->bitmapConfig(Landroid/graphics/Bitmap$Config;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    new-instance v1, Lcom/nostra13/universalimageloader/core/display/SimpleBitmapDisplayer;

    invoke-direct {v1}, Lcom/nostra13/universalimageloader/core/display/SimpleBitmapDisplayer;-><init>()V

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->displayer(Lcom/nostra13/universalimageloader/core/display/BitmapDisplayer;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->build()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/community/PortalFragment;->mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    .line 137
    invoke-static {}, Lcom/nostra13/universalimageloader/core/ImageLoader;->getInstance()Lcom/nostra13/universalimageloader/core/ImageLoader;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/community/PortalFragment;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    .line 139
    invoke-static {}, Lcom/brixd/niceapp/bus/BusProvider;->getInstance()Lcom/squareup/otto/Bus;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/squareup/otto/Bus;->register(Ljava/lang/Object;)V

    .line 140
    return-void
.end method

.method public initScreenMatrix()V
    .registers 3

    .prologue
    .line 125
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/PortalFragment;->getScreenDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    .line 126
    .local v0, "mDisplayMetrics":Landroid/util/DisplayMetrics;
    iget v1, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    iput v1, p0, Lcom/brixd/niceapp/community/PortalFragment;->mScreenWidth:I

    .line 127
    return-void
.end method

.method protected initViews(Landroid/view/LayoutInflater;)Landroid/view/View;
    .registers 9
    .param p1, "inflater"    # Landroid/view/LayoutInflater;

    .prologue
    const/4 v4, 0x0

    const/4 v5, 0x0

    .line 144
    const v3, 0x7f030056

    invoke-virtual {p1, v3, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    .line 145
    .local v2, "view":Landroid/view/View;
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/PortalFragment;->initScreenMatrix()V

    .line 147
    const v3, 0x7f0a004a

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    iput-object v3, p0, Lcom/brixd/niceapp/community/PortalFragment;->mShadowHeaderView:Landroid/view/View;

    .line 148
    const v3, 0x7f0a002b

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ExpandableListView;

    iput-object v3, p0, Lcom/brixd/niceapp/community/PortalFragment;->mExpandableListView:Landroid/widget/ExpandableListView;

    .line 149
    iget-object v3, p0, Lcom/brixd/niceapp/community/PortalFragment;->mExpandableListView:Landroid/widget/ExpandableListView;

    invoke-virtual {v3, v4}, Landroid/widget/ExpandableListView;->setHeaderDividersEnabled(Z)V

    .line 150
    iget-object v3, p0, Lcom/brixd/niceapp/community/PortalFragment;->mExpandableListView:Landroid/widget/ExpandableListView;

    invoke-virtual {v3, v5}, Landroid/widget/ExpandableListView;->setDivider(Landroid/graphics/drawable/Drawable;)V

    .line 151
    iget-object v3, p0, Lcom/brixd/niceapp/community/PortalFragment;->mExpandableListView:Landroid/widget/ExpandableListView;

    invoke-virtual {v3, v4}, Landroid/widget/ExpandableListView;->setDividerHeight(I)V

    .line 152
    iget-object v3, p0, Lcom/brixd/niceapp/community/PortalFragment;->mExpandableListView:Landroid/widget/ExpandableListView;

    invoke-virtual {v3, v5}, Landroid/widget/ExpandableListView;->setGroupIndicator(Landroid/graphics/drawable/Drawable;)V

    .line 153
    iget-object v3, p0, Lcom/brixd/niceapp/community/PortalFragment;->mExpandableListView:Landroid/widget/ExpandableListView;

    iget-object v4, p0, Lcom/brixd/niceapp/community/PortalFragment;->mListOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;

    invoke-virtual {v3, v4}, Landroid/widget/ExpandableListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    .line 154
    iget-object v3, p0, Lcom/brixd/niceapp/community/PortalFragment;->mExpandableListView:Landroid/widget/ExpandableListView;

    const/4 v4, 0x2

    invoke-virtual {v3, v4}, Landroid/widget/ExpandableListView;->setOverScrollMode(I)V

    .line 157
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v3

    const v4, 0x7f030069

    invoke-static {v3, v4, v5}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 158
    .local v1, "headerView":Landroid/view/View;
    invoke-direct {p0, v2, v1}, Lcom/brixd/niceapp/community/PortalFragment;->initCloverView(Landroid/view/View;Landroid/view/View;)V

    .line 159
    iget-object v3, p0, Lcom/brixd/niceapp/community/PortalFragment;->mExpandableListView:Landroid/widget/ExpandableListView;

    invoke-virtual {v3, v1}, Landroid/widget/ExpandableListView;->addHeaderView(Landroid/view/View;)V

    .line 161
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v3

    const v4, 0x7f030049

    invoke-static {v3, v4, v5}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 162
    .local v0, "emptyFooterView":Landroid/view/View;
    iget-object v3, p0, Lcom/brixd/niceapp/community/PortalFragment;->mExpandableListView:Landroid/widget/ExpandableListView;

    invoke-virtual {v3, v0}, Landroid/widget/ExpandableListView;->addFooterView(Landroid/view/View;)V

    .line 164
    new-instance v3, Lcom/brixd/niceapp/community/adapter/PortalAdapter;

    invoke-virtual {p0}, Lcom/brixd/niceapp/community/PortalFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v4

    iget-object v5, p0, Lcom/brixd/niceapp/community/PortalFragment;->mPortalModel:Lcom/brixd/niceapp/model/PortalModel;

    iget v6, p0, Lcom/brixd/niceapp/community/PortalFragment;->mScreenWidth:I

    invoke-direct {v3, v4, v5, v6}, Lcom/brixd/niceapp/community/adapter/PortalAdapter;-><init>(Landroid/app/Activity;Lcom/brixd/niceapp/model/PortalModel;I)V

    iput-object v3, p0, Lcom/brixd/niceapp/community/PortalFragment;->mPortalAdapter:Lcom/brixd/niceapp/community/adapter/PortalAdapter;

    .line 165
    iget-object v3, p0, Lcom/brixd/niceapp/community/PortalFragment;->mExpandableListView:Landroid/widget/ExpandableListView;

    iget-object v4, p0, Lcom/brixd/niceapp/community/PortalFragment;->mPortalAdapter:Lcom/brixd/niceapp/community/adapter/PortalAdapter;

    invoke-virtual {v3, v4}, Landroid/widget/ExpandableListView;->setAdapter(Landroid/widget/ExpandableListAdapter;)V

    .line 166
    invoke-direct {p0}, Lcom/brixd/niceapp/community/PortalFragment;->expandAllGroup()V

    .line 168
    return-object v2
.end method

.method public onDestroy()V
    .registers 2

    .prologue
    .line 371
    invoke-super {p0}, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment;->onDestroy()V

    .line 372
    invoke-static {}, Lcom/brixd/niceapp/bus/BusProvider;->getInstance()Lcom/squareup/otto/Bus;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/squareup/otto/Bus;->unregister(Ljava/lang/Object;)V

    .line 373
    return-void
.end method

.method public onResume()V
    .registers 5

    .prologue
    .line 356
    invoke-super {p0}, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment;->onResume()V

    .line 358
    iget-object v0, p0, Lcom/brixd/niceapp/community/PortalFragment;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/brixd/niceapp/community/PortalFragment$4;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/community/PortalFragment$4;-><init>(Lcom/brixd/niceapp/community/PortalFragment;)V

    const-wide/16 v2, 0xc8

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 367
    return-void
.end method

.method protected onViewPostInit()V
    .registers 1

    .prologue
    .line 308
    invoke-direct {p0}, Lcom/brixd/niceapp/community/PortalFragment;->refreshPortalData()V

    .line 309
    return-void
.end method

.method public refreshList()V
    .registers 1

    .prologue
    .line 352
    return-void
.end method

.method public scrollToHome()V
    .registers 3

    .prologue
    const/4 v1, 0x0

    .line 340
    iget-object v0, p0, Lcom/brixd/niceapp/community/PortalFragment;->mExpandableListView:Landroid/widget/ExpandableListView;

    if-eqz v0, :cond_f

    .line 341
    iget-object v0, p0, Lcom/brixd/niceapp/community/PortalFragment;->mExpandableListView:Landroid/widget/ExpandableListView;

    invoke-virtual {v0, v1}, Landroid/widget/ExpandableListView;->setSelection(I)V

    .line 342
    iget-object v0, p0, Lcom/brixd/niceapp/community/PortalFragment;->mExpandableListView:Landroid/widget/ExpandableListView;

    invoke-virtual {v0, v1, v1}, Landroid/widget/ExpandableListView;->smoothScrollBy(II)V

    .line 344
    :cond_f
    return-void
.end method

.method public setHeaderView(Landroid/view/View;)V
    .registers 2
    .param p1, "view"    # Landroid/view/View;

    .prologue
    .line 348
    return-void
.end method

.method public updateBravoNumberEvent(Lcom/brixd/niceapp/bus/event/UpdateBravoTimesEvent;)V
    .registers 3
    .param p1, "event"    # Lcom/brixd/niceapp/bus/event/UpdateBravoTimesEvent;
    .annotation runtime Lcom/squareup/otto/Subscribe;
    .end annotation

    .prologue
    .line 377
    iget-object v0, p0, Lcom/brixd/niceapp/community/PortalFragment;->mPortalAdapter:Lcom/brixd/niceapp/community/adapter/PortalAdapter;

    if-eqz v0, :cond_e

    .line 378
    iget-object v0, p0, Lcom/brixd/niceapp/community/PortalFragment;->mPortalAdapter:Lcom/brixd/niceapp/community/adapter/PortalAdapter;

    invoke-virtual {v0, p1}, Lcom/brixd/niceapp/community/adapter/PortalAdapter;->updateBravoNumber(Lcom/brixd/niceapp/bus/event/UpdateBravoTimesEvent;)V

    .line 379
    iget-object v0, p0, Lcom/brixd/niceapp/community/PortalFragment;->mPortalAdapter:Lcom/brixd/niceapp/community/adapter/PortalAdapter;

    invoke-virtual {v0}, Lcom/brixd/niceapp/community/adapter/PortalAdapter;->notifyDataSetChanged()V

    .line 381
    :cond_e
    return-void
.end method
